What is the purpose of ‘else’ statement in if-elif ladder?

Python - Online Exam Test Papers | Python - MCQs[multiple choice questions and answers ] | Python - Mock Test Papers | Python - Practice Papers | Python - Sample Test Papers |

Question:
What is the purpose of ‘else’ statement in if-elif ladder?

1.else statement in if-elif will execute, if none of the condition is True

2.else statement in if-elif will execute, if all the condition is True.

3.else statement in if-elif will execute, if the condition just above else statement is True

4.None of the above

Posted Date:-2021-12-10 18:58:35


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!